var RunLayer4 = BaseLayer.extend({
	arr:null,
	scene:null,
	ctor:function (parent) {
		this._super(parent);
		this.init();
	},
	init:/**
			 * 初始化,
			 */
	function () {
		this._super();
		cc.log("RunLayer4初始化");
		
		// 天平
		this.balance = new Balance(this);
		this.balance.outFama();
		
		var beaker = new Beaker(this, 10, TAG_BEAKER3, this.callback); 
		beaker.setPosition(cc.p(645, 290));
		beaker.upLineResult();
		
		this.initIron();
		this.initLamp();
		
		// 物品库
		this.lib = new Lib(this);
		this.lib.init([TAG_LIB_NAOH, TAG_LIB_NA2CO3, TAG_LIB_BEAKER]);
	},
	callback:function (p){
		var func = cc.callFunc(this.actionDone, this);
		switch(p.getTag()){
		case TAG_BEAKER3:
			if(gg.flow.flow.action == ACTION_DO2){
				this.beakerYinliu(p, TAG_BEAKER4);
			}
			break;
		case TAG_BEAKER4:
			if(gg.flow.flow.action == ACTION_DO1){
				var move = cc.moveTo(1,cc.p(350, 250));
				var seq = cc.sequence(move, this.callNext);
				p.runAction(seq);
			}
			break;
		}
	},
	destroy:/**
			 * 销毁
			 */
	function(){
		this.lib.close();
		this._super();
	},
	onExit:function(){
		this._super();
	}
});